package a.f.d;

import a.c.e;
import a.c.i;
import a.c.k;
import a.c.q;
import a.c.x;
import a.f.d.a.ac;
import a.f.d.a.bc;
import a.f.d.a.hc;
import a.f.d.a.zb;
import a.f.o;
import a.i.l;

public class ab
  implements fb, zb
{
  public static final Object a = "y.layout.hierarchic.GivenLayersLayerer.LAYER_ID_KEY";
  public static int b;
  
  public int a(q paramq, k paramk, i parami)
  {
    int i2 = f.o;
    int i1 = f.n;
    if (i2 == 0) {
      if (paramq.n()) {
        return 0;
      }
    }
    e[] arrayOfe = paramq.t();
    l.a(arrayOfe, l.e(paramk));
    int i = paramk.getInt(arrayOfe[0]);
    int j = i;
    int k = i;
    int m = 0;
    do
    {
      do
      {
        if (m >= arrayOfe.length) {
          break;
        }
        int n = paramk.getInt(arrayOfe[m]);
        if (i2 != 0) {
          break label154;
        }
        if (i1 != 0) {
          break label153;
        }
        if (n - j > 1) {
          k += n - j - 1;
        }
        parami.a(arrayOfe[m], n - k);
        j = n;
        m++;
      } while (i1 == 0);
    } while (i2 != 0);
    label153:
    label154:
    return j - k + 1;
  }
  
  public int a(o paramo, x paramx, a.c.ab paramab)
  {
    if (f.o == 0) {
      if (paramo.n()) {
        return 0;
      }
    }
    k localk = paramo.c(a);
    if (localk == null) {
      throw new IllegalArgumentException("Given graph does not yield LAYER_ID_KEY DataProvider");
    }
    int i = a(paramo, localk, paramx);
    paramab.a(w.a(paramo, paramx));
    return i;
  }
  
  public void a(o paramo, ac paramac, bc parambc)
  {
    new hc(this).a(paramo, paramac, parambc);
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.d.ab
 * JD-Core Version:    0.7.0.1
 */